package com.xl.sst.controller;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.xl.sst.biz.UserCenterBiz;


@Controller
@RequestMapping("/center")
public class UserCenterController {
	@Resource
	private UserCenterBiz userCenterBiz;
	
	/*
	 * 获取大分类集合包含小分类
	 * 测试
	 * http://localhost:8080/SST/center/list.do
	 */
	@RequestMapping("/list.do")
	public 	@ResponseBody Map<String,Object> centerList(){
		Map<String,Object>map=new HashMap<String,Object>();
		map.put("nav", userCenterBiz.getBigClassList());
		return map;
	}
	/*
	 * 获取图片 
	 * http://localhost:8080/SST/center/image.do
	 */
	@RequestMapping("/image.do")
	@ResponseBody
	public Map<String,Object> centerimage(){
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("ad1", userCenterBiz.getImage());
		return map;
	}
	
	
	

}
